import axios from 'axios'
const http = {};
http.userCare=() => axios.post('/api/AppFocus/getMostUsersDynamic').then(r => r.data);
// 获取头条
http.getTouTiao=params => axios.post('/api/AppToutiao/getDiscussById',params).then(r => r.data);
// 获取热门应用
http.getHotSoft=() => axios.post('/api/AppApplication/getHotApp').then(r => r.data);
// 获取应用猜你喜欢
http.getLikeSoft=params => axios.post('/api/AppApplication/getUserLikeApp',params).then(r => r.data);
// 获取好软畅玩
http.friendPlay=() => axios.post('/api/AppApplication/getAppByScore').then(r => r.data);
// 获取好软推荐（应用）(酷友都在玩)
http.getGoodSoft=params => axios.post('/api/AppApplication/getAppAByScore',params).then(r => r.data);
// 获取今日更新
http.getTodayUpdate=params => axios.post('/api/AppApplication/getAppIdByNews',params).then(r => r.data);
// 获取应用更新(游戏更新)
http.getSoftUpdata=params => axios.post('/api/AppApplication/getAppGByDate',params).then(r => r.data);
// 获取应用分类（游戏）
http.getSoftKind=params => axios.post('/api/AppApplication/getAppTypeByFatherTypeId',params).then(r => r.data);
// 获取应用（游戏）榜
http.getSoftRize=params => axios.post('/api/AppApplication/getAppPhbADownload',params).then(r => r.data);
// 获取讨论榜
http.getTalking=params => axios.post('/api/AppApplication/getAppPhbByDiscuss',params).then(r => r.data);
// 获取评分榜
http.getScore=params => axios.post('/api/AppApplication/getAppPhbByScore',params).then(r => r.data);
// 下载接口
http.downloadFile=params => axios.post('/api/upload/downloadFile',params).then(r => r.data);
// 获取子类型应用展示
http.getChildrenSoft=params => axios.post('/api/AppApplication/getAppByAppType',params).then(r => r.data);
// 获取数码类型
http.getDigitalType=params => axios.post('/api/digital/findAllDigitalCategory',params).then(r => r.data);
// 获取数码品牌
http.getDigitalBrand=params => axios.post('/api/AppDigital/getDigitalByHot',params).then(r => r.data);
// 获取数码产品信息
http.getDigitalProduct=params => axios.post('/api/AppDigital/getDigitalByCategory',params).then(r => r.data);
// 获取应用详细信息
http.getSoftDetails=params => axios.post('/api/AppApplication/getAppByAppId',params).then(r => r.data);
// 根据数码id获取详细信息
http.getDigitalDetails=params => axios.post('/api/digital/selDigitalMassageById',params).then(r => r.data);
// 获取数码（应用）点评信息
http.getCommend=params => axios.post('/api/review/findAllReview',params).then(r => r.data);
// 获取数码交易信息
http.getDeal=params => axios.post('/api/digital/findAllDeal',params).then(r => r.data);
// 获取讨论信息
http.getTalkings=params => axios.post('/api/Discuss/getDiscussByXiaoxi',params).then(r => r.data);
// 下载次数
http.downloadTimes=params => axios.post('/api/AppApplication/updateDownloads',params).then(r => r.data);
// 搜索
http.souSuo=params => axios.post('/api/AppSousuo/ZongHeSouSuo',params).then(r => r.data);
// 修改信息
http.changeMsg=params => axios.post('/api/appUser/updAppUser',params).then(r => r.data);
// 发布话题
http.topicFabu=params => axios.post('/api/Topic/addTopic',params).then(r => r.data);




http.getTalk=params => axios.post('/api/AppApplication/getAppByDiscuss',params).then(r => r.data);
// 用户登录
http.userLogin = params => axios.post('/api/appUser/loginUser', params).then(r => r.data);
//用户注册
http.userRegister = params => axios.post('/api/equalsSend', params).then(r => r.data);
//发送短信
http.getSend = params => axios.post('/api/getSend', params).then(r => r.data);
//验证码验证
// http.equalsSend = params => axios.post('/api/equalsSend', params).then(r => r.data);
//修改用户名
http.updAppUser = params => axios.post('/api/appUser/updAppUser', params).then(r => r.data);
//应用管理（下载记录）
http.myRecords = params => axios.post('/api/AppApplication/getUserDownloadApp', params).then(r => r.data);
//应用管理(应用更新)
http.myAppUpdate = params => axios.post('/api/AppApplication/getUserUpdateApp', params).then(r => r.data);
//我的收藏单
http.myCollect = params => axios.post('/api/UserCollect/getUserCollectList', params).then(r => r.data);
//我的关注(应用,数码,话题)
http.myFollow = params => axios.post('/api/AppUserFocus/getUserFocusByUserId', params).then(r => r.data);
export default http;
